package com.zp.arrays;

public class Arraycopy {
	public static void main(String[] args) {
		int[] a = {1,2,3,4};
		int[] b = new int[4];
		
		System.arraycopy(a, 0, b, 0, 4);
		
		for(int i=0;i<b.length;i++){
			System.out.println(b[i]);
		}
	}
	
}
